import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'// element-ui
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import AFTableColumn from 'af-table-column'
import 'venusui/styles/index.scss' // 植入外部venus
import '@/style/global.css'
import '@/utils/filters'

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control

// set ElementUI lang to zh-CN
Vue.use(ElementUI, { locale })
Vue.use(AFTableColumn)
Vue.config.productionTip = false

import regulars from './regular'
Vue.prototype.regulars = regulars
// Vue.prototype.sys_url = 'http://172.32.16.20:8888' //定义全局变量

import 'venusui/utils/filters'
import venuscomponents from 'venusui'
import 'venusui/venuscomponents/venuscomponents.css'
Vue.use(venuscomponents)

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
